<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>获取元素中的超文本内容</title>
</head>
<body>
<div class="container">文本一</div>
<script>
  var ele = document.querySelector('.container');
  console.log(ele.innerHTML);
  //设置超文本内容 可以识别标签
  ele.innerHTML = "<h1>文本</h1>";
</script>
</body>
</html>